﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using King.Engine.Core;
using BreacherCreature.GameObjects;
using BreacherCreature.GameObjects.Tiles;
using Microsoft.Xna.Framework;
using BreacherCreature.Components.Lights;
using King.Engine.GameObjects;
using BreacherCreature.GameObjects.Hud;
using King.Engine.Content;
using System.Timers;

namespace BreacherCreature
{
    public class GameActivity : Activity
    {

        #region Properties

        public Creature Creature;
        
        private HUDMessageBox _messageBox;

        public Point CreatureSpawn;
        public Point EggPoint;

        #endregion


        #region Public Methods

        

        #endregion


        #region Protected Method

        protected override void OnStart()
        {
            
            Screen.ClampCamera = true;
            
            ContentLoader.LoadLevel<GameActivity,MainLevelScheme>("Room1");

            _messageBox = new HUDMessageBox( new Vector2(Screen.WindowWidth/2, Screen.WindowHeight-50), 20 );
            AddGameObject(_messageBox);

            Creature = new Creature(CreatureSpawn);
            AddGameObject(Creature);


            
        }

        private void addMessage(object source, ElapsedEventArgs e)
        {
            _messageBox.addMessage("Sent from the timer, lets see if it overlaps",Color.Red);
        }

        protected override void OnResume()
        {

        }

        #endregion

    }
}
